package sahd.broker.iONetMessageManager;
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



import java.io.Serializable;

/**
 *
 * @author Romms
 */
public class Message implements Serializable{
    private String senderIpAddress;
    private String macAddress;
    private String originalSourceIPAddress;
    private int protocol;
    private int serviceRequestedProtocol;



    public int getServiceRequestedProtocol() {
        return serviceRequestedProtocol;
    }

    public void setServiceRequestedProtocol(int serviceProtocol) {
        this.serviceRequestedProtocol = serviceProtocol;
    }
    private Object content;
    private String serviceNameRequested;

    public String getOriginalSourceIPAddress() {
        return originalSourceIPAddress;
    }

    public void setoriginalSourceIPAddress(String originalSourceIPAddress) {
        this.originalSourceIPAddress = originalSourceIPAddress;
    }

    public String getServiceNameRequested() {
        return serviceNameRequested;
    }

    public void setServiceNameRequested(String serviceName) {
        this.serviceNameRequested = serviceName;
    }

    /**
     * 
     * @param String senderIpAddress
     * @param Object content
     * @param int protocol
     */
    public Message(String senderIpAddress,Object content,int protocol){
        this.protocol= protocol;
        this.content = content;
        this.senderIpAddress=senderIpAddress;
    }

    public Message(String senderIpAddress,Object content,int protocol, int serviceRequestedProtocol){
        this.protocol= protocol;
        this.content = content;
        this.senderIpAddress=senderIpAddress;
        this.serviceRequestedProtocol=serviceRequestedProtocol;
    }

    Message(String hostAddress, Object content, int protocol, String originalSourceIp, int serviceRequestedProtocol) {
        this.protocol= protocol;
        this.content = content;
        this.senderIpAddress=senderIpAddress;
        this.serviceRequestedProtocol=serviceRequestedProtocol;
        this.originalSourceIPAddress=originalSourceIp;
    }

    /**
     * 
     * @return String senderIpAddress
     */
    public String getSenderIpAddress() {
        return senderIpAddress;
    }

    /**
     *
     * @param String senderIpAddress
     */
    public void setSenderIpAddress(String senderIpAddress) {
        this.senderIpAddress = senderIpAddress;
    }

    /**
     * 
     * @return int protocol
     */
    public int getProtocol() {
        return protocol;
    }

    /**
     *
     * @param int protocol
     */
    public void setProtocol(int protocol) {
        this.protocol = protocol;
    }

    /**
     *
     * @return Object content
     */
    public Object getContent() {
        return content;
    }

    /**
     *
     * @param Object content
     */
    public void setContent(Object content) {
        this.content = content;
    }

    public String getMacAddress() {
        return macAddress;
    }

    public void setMacAddress(String macAddress) {
        this.macAddress = macAddress;
    }


}
